import { defineStore } from 'pinia';
// 日期范围的处理
const startDate = new Date()
const endDate = new Date()
endDate.setDate(endDate.getDate() + 1) //向后推迟一天

const useMainStore = defineStore('main', {
  state: () => ({
    startDate: startDate,
    endDate: endDate,
    loading: false
  }),
  actions: {},
  getters: {},
})
export default useMainStore